package com.cloudkinto.service.file;

import com.cloudkinto.entity.FileMoreDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.file.vo.FileRes;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * service接口
 * </p>
 *
 * @author hua
 * @since 2022-11-22
 */
public interface FileMoreService extends IService<FileMoreDo> {

    SingleResult addInit();

    Object add(Object req, Long userId);

    SingleResult updateInit(Long id);

    Object update(Object updateVo, Long userId);

    int delete(Long id, Long userId);

    Object detail(Long id);

    SingleResult pageInit();

    List<Object> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);

    List<FileRes> getFileList(Long id, String type);

    void insertFileMoreList(List<Long> fileIdList, Long id, String type, Long userId);

    void insertFileMoreList(List<Long> fileIdList, Long id, String type, String tips, Long userId);

    void dealFileList(List<FileRes> fileList, Long id, String type, Long userId);

}
